<template>
    <!-- 横幅 -->
    <div class="bg">
        <img :src="require('@/assets/images/' + banner + '.jpg')" alt="" />
    </div>
</template>

<script>
export default {
    name: "banner",
    props: {
        banner: {
            type: [String],
        },
    },
};
</script>

<style lang="less" scoped>
.bg {
    img {
        width: 100%;
        min-height: 300px;
    }
}
</style>